package com.wangdao.wechatmall.bean.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wangdao.wechatmall.bean.pojo.Order;
import com.wangdao.wechatmall.bean.pojo.OrderGoods;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author liyongqiang
 * CreateDate 2021/7/10 10:53
 */


@NoArgsConstructor
@Data
public class OrderDetailVO {
    @JsonProperty("orderGoods")
    private List<OrderGoods> orderGoods;
    @JsonProperty("user")
    private UserDTO user;
    @JsonProperty("order")
    private Order order;

    @NoArgsConstructor
    @Data
    public static class UserDTO {
        @JsonProperty("nickname")
        private String nickname;
        @JsonProperty("avatar")
        private String avatar;
    }

}
